package com.nami.store.biz.inboxmsgs.application;


import com.nami.store.biz.inboxmsgs.service.InBoxMsgDomainService;
import com.nami.store.biz.sendboxmsgs.application.SendBoxMsgAppService;
import com.nami.store.biz.sendboxmsgs.service.SendBoxMsgDomainService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.utils.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Date;

@Slf4j
@Service
@RequiredArgsConstructor
public class InBoxMsgAppServiceImpl implements InBoxMsgAppService {

    private final InBoxMsgDomainService inBoxMsgDomainService;

    @Override
    public boolean delByTime(String appKey, Date time) {
        if (StringUtils.isBlank(appKey)) {
            return false;
        }
        return inBoxMsgDomainService.delByTime(appKey, time);
    }

}
